#ifndef LOCUS_FREQUENCY_H
#define LOCUS_FREQUENCY_H

#include "locus.h"

#include <QHash>
#include <QString>
#include <QStringList>

class LocusFrequency {

public:
    LocusFrequency();

    void addLocus( Locus *locus );
    qreal getFrequency( QString allele );
    qreal getHo();
    qreal getHe();

    inline bool isFixed() { return _alleles.keys().count() < 2; }


private:
    QHash<QString,qreal> _alleles;
    qreal _n;
    qreal _Ho;
    qreal _nHo;
};

#endif // LOCUS_FREQUENCY_H
